<%--
  Created by IntelliJ IDEA.
  User: qmac
  Date: 2018/10/12
  Time: 上午12:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>main</title>
    <link href="${pageContext.request.contextPath}/static/css/signin.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/static/css/equipment.css" rel="stylesheet" type="text/css" />
    <link href="${pageContext.request.contextPath}/static/bootstrap-3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <script src="${pageContext.request.contextPath}/static/js/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/bootstrap-3.3.1/js/bootstrap.min.js"></script>
    <%
        if(session.getAttribute("currentUser")==null){
            response.sendRedirect(request.getContextPath()+"/login.jsp");
            return;
        }

        String mainPage=(String)request.getAttribute("mainPage");
        if(mainPage==null || mainPage.equals("")){
            mainPage="/common/default.jsp";
        }
    %>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <jsp:include page="/common/head.jsp"/>
        </div>
    </div>
    <div class="row" style="padding-top: 45px">
        <div class="col-md-3">
            <jsp:include page="/common/menu.jsp"/>
        </div>
        <div class="col-md-9">
            <div>
                <ol class="breadcrumb">
                    <li><span class="glyphicon glyphicon-home"></span>&nbsp;<a href="${pageContext.request.contextPath}/main.jsp">主页</a></li>
                    <li class="active">${modeName }</li>
                </ol>
            </div>
            <jsp:include page="<%=mainPage %>"/>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <jsp:include page="/common/foot.jsp"/>
        </div>
    </div>
</div>
</body>
</html>
